package com.zyx.spring5msb.iocforward.bean;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Map;

/**
 * @author Yaxi.Zhang
 * @since 2021/9/27 14:02
 */
@Data
@AllArgsConstructor
public class Person {
    private int id;
    private String name;
    private Integer age;
    private String gender;
    private Address address;
    Map<String, Object> maps;
    String[] hobbies;

    public Person() {
        System.out.println("person被创建了...");
    }

    public void init(){
        // 编写N行逻辑代码完成初始化功能
        System.out.println("person对象初始化完成");
    }

    public void destory(){
        System.out.println("person对象被销毁");
    }

}
